-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(prospective-parachains): Implement HandleIntroduceSecondedCandidate
#4350
base: feat/parachain
Are you sure you want to change the base?
feat(prospective-parachains): Implement HandleIntroduceSecondedCandidate
#4350
Conversation
- Added: Candidate Entry - (inclusion_emulator): Added ProspectiveCandidate, Modification error and Fragment Validity error
|
HandleIntroduceSecondedCandidate
should wait the merge of branch of #4337 |
…uce_seconded_candidate
…ssamer into eclesio/fragment-chain-impl
@rebonat0 this PR is unblocked now, sorry for the long delay! |
…uce_seconded_candidate
@rebonat0 please sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small issues and two formatting nits.
perRelayParent: make(map[common.Hash]*relayParentData), | ||
activeLeaves: make(map[common.Hash]bool), | ||
implicitView: nil, // TODO: currently there's no implementation for ImplicitView, reference is: | ||
// https://github.com/ChainSafe/gossamer/blob/main/lib/prospective_parachains/view.go#L10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URL returns 404. Was this meant to be https://github.com/paritytech/polkadot-sdk/blob/028e61be43f05f6f6c88c5cca94160f8db075585/polkadot/node/subsystem-util/src/backing_implicit_view.rs#L40?
|
||
if err != nil { | ||
logger.Tracef("hashing candidate: %s", err.Error()) | ||
response <- false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually the writer closes the channel when it is done. Will this channel be used somewhere else as well or should it be closed here?
If it should be closed here, I suggest adding defer close(response)
at the top of the function.
If you are unsure we can leave it as is and figure it out later. In that case please add a TODO comment somewhere.
Co-authored-by: Haiko Schol <[email protected]>
Co-authored-by: Haiko Schol <[email protected]>
Changes
This PR introduces the
HandleIntroduceSecondedCandidate
func toprospectiveparachains
package.Notes:
currently there's no implementation for ImplicitView, reference is:
polkadot-sdk reference
Tests
go test -timeout 30s github.com/ChainSafe/gossamer/dot/parachain/prospective-parachains
Issues
closes #4308